package cn.knightzz.mapper;

import cn.knightzz.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author knightzz
 * @since 2021-04-09
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<SysUser> getUserList();

    IPage<SysUser> selectUserPage(Page<?> page, String query, Long roleId);

    SysUser getUserById(Long id);

    List<SysUser> getUserListByAddressAndRoleName(String address, String roleName);

    List<SysUser> getAdminUserByArea(String address, Integer adminId, Integer sAdminId);
}
